﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Core.PageInterfaces;
using Core.DBInterfaces;
using System.ComponentModel.DataAnnotations;
using Core.Constants;

namespace Core.PageEntities
{
    public partial class SitePageDefinition : EntityModel, ISitePageDefinition
    {  
        public virtual int Id { get; set; }

        [Required]
        [RegularExpression(ConstantsRegex.STR_URL_SECTION, ErrorMessage = ConstantsValidation.STR_URL_VALIDATION_ERROR)]
        public virtual string InternalName { get; set; }

        public virtual string InternalDescription { get; set; }
        public virtual bool IsActive { get; set; }
        public virtual int SitePageGroupId { get; set; }
        public virtual int? SortOrder { get; set; }

        public virtual ICollection<SitePage> SitePage { get; set; }
        public virtual SitePageGroup SitePageGroup { get; set; }
    }
}
